<?php
use app\models\Activity;
use app\models\Job;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $user \app\models\User */

?>

<div class="mui-row userNav">
    <?php foreach ($items as $cid => $item): ?>
    <div class="mui-col-xs-6">
        <a href="javascript:;" data-href="<?= Url::to(['save', 'cid' => $cid, 'type' => $item['type']]); ?>" style="background: <?= $item['style']; ?>">
            <div class="avatar">
                <span style="background-image:url(<?= Yii::getAlias('@assets'); ?>/images/icon/<?= $item['img']; ?>)"></span>
            </div>
            <p><?= $item['name']; ?></p>
        </a>
    </div>
    <?php endforeach; ?>
</div